package cn.dazhou.railway.bindremoteservice;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String data = intent.getStringExtra("message");
        Log.d("ABCD", "收到广播: " + data);
        Toast.makeText(context, "收到消息: " + data, Toast.LENGTH_SHORT).show();
    }
}